com.sabro.jbusiness.sys
Class SysTabelaFormatadaProcesso

java.lang.Object
  extended by com.sabro.jbusiness.sys.SysTabela
      extended by com.sabro.jbusiness.sys.SysTabelaFormatada
          extended by com.sabro.jbusiness.sys.SysTabelaFormatadaProcesso
All Implemented Interfaces:
ISelectable, java.io.Externalizable, java.io.Serializable, java.lang.Comparable<SysTabelaFormatada>

public class SysTabelaFormatadaProcesso
extends SysTabelaFormatada

Usada para referenciar a tabela e os campos comuns a todos os processos. Para que esta tabela exista dentro do banco de dados: 1) execute o script SQL abaixo; 2) configure os campos da tabela 8;

 DELETE FROM CFOPsTabelas WHERE CFOPSTabela_ID=8
 SET IDENTITY_INSERT CFOPsTabelas ON
 INSERT INTO CFOPsTabelas(CFOPsTabela_ID, CFOPsTabela, CTCFOPID) VALUES(8, 'Processos', 3)
 SET IDENTITY_INSERT CFOPsTabelas OFF
 
 ALTER TABLE CFOPsCampos DISABLE TRIGGER ALL
 INSERT INTO CFOPsCampos(CFOPsCampo, CCPReferencia, CCPConsulta, CCPEditoresID, CCPLeitoresID, Ordem, CCPShow, CCPSystem, Ajuda, CCPQuest, CCPAlias, CCPCFOPsTabelaID, CCPGlobal, CCPSysTypeID, CCPSysLength, CCPSysPrec, CCPSysScale, CCPIndexado, CCPNoNull, CCPVisualizadoresID, CCPVisibilidade, CCPTipoDadoID, CCPFGColor, CCPBGColor, CCPGrupo, CCPEditabilidade, CCPIsLogged, CCPConsultaCode, CCPConsultaResultado, CCPConsultaLista, CCPConsultaFrom, CCPConsultaWhere, CCPReferenciaID, CCPReferenciaAlias, CCPDetalhe)
                  SELECT CFOPsCampo, CCPReferencia, CCPConsulta, CCPEditoresID, CCPLeitoresID, Ordem, CCPShow, CCPSystem, Ajuda, CCPQuest, CCPAlias,                8,         1, CCPSysTypeID, CCPSysLength, CCPSysPrec, CCPSysScale, CCPIndexado, CCPNoNull, CCPVisualizadoresID, CCPVisibilidade, CCPTipoDadoID, CCPFGColor, CCPBGColor, CCPGrupo, CCPEditabilidade, CCPIsLogged, CCPConsultaCode, CCPConsultaResultado, CCPConsultaLista, CCPConsultaFrom, CCPConsultaWhere, CCPReferenciaID, CCPReferenciaAlias, CCPDetalhe
                    FROM CFOPsCampos
                    WHERE CCPCFOPsTabelaID=25
                      AND CCPGlobal=1
 ALTER TABLE CFOPsCampos ENABLE TRIGGER ALL
 

Author:
Dalton Salvatti
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.sabro.jbusiness.sys.SysTabela
SysTabela.SysLigacao
 
Constructor Summary
SysTabelaFormatadaProcesso(SysConexao sysConexao)
           
 
Method Summary
 java.lang.String getAlias()
          Obtém o nome amigável da tabela Se a tabela pertencer a um tipo de processo, o nome será composto pelo Nome amigável do processo mais o nome da tabela.
 int getTabelaCfopId()
          Obtém o código do tipo de processo cujo ID foi fornecido no parâmetro.
 void readExternal(java.io.ObjectInput in)
           
 void writeExternal(java.io.ObjectOutput out)
           
 
Methods inherited from class com.sabro.jbusiness.sys.SysTabelaFormatada
compareTo, getAnexoByNomeTabela, getAnexos, getCamposByReferencia, getCamposByReferencia, getColunaBuscaValor, getCountSysCampos, getExtensao, getGrupos, getLigacaos, getNomeCalc, getNomeComposto, getNomeComposto, getNomeView, getNomeVlr, getParametrosCalc, getParametrosGetSet, getProcessoAlias, getProcessoAlias, getRowOfSysCampo, getSysCampo, getSysCampo, getSysCampoAtRow, getSysCampoFormatadoBySysCampoId, getSysCampoFormatados, getSysCampoLigacao, getSysCampoLigacaoId, getSysCampoPriKey, getSysLigacao, getSysLigacao, getSysTabelaFormatada, getSysTabelaFormatada, getSysTabelaFormatada, getSysTabelaFormatada, getSysTabelaFormatada, getSysTabelaFormatadaBySysCampoId, getSysTabelaId, getSysTabelaPai, getSysTabelaPaiId, getSysTabelaRaizProcesso, getSysTabelasFormatadas, getSysTabelasFormatadas, getTermoBuscaCampo, getTermoBuscaValor, hasSysTabelaFormatada, hasSysTabelaFormatada, isAnexa, isAnexaProcesso, isRaizProcesso, isTabelaProcesso, readExternalAll, reInit, reInitAll, setColunaBuscaValor, setTermoBuscaCampo, setTermoBuscaValor, toString, writeExternalAll
 
Methods inherited from class com.sabro.jbusiness.sys.SysTabela
canClose, getAjuda, getFrom, getISelectableComponents, getISelectableParent, getNomePriKey, getNomeSingular, getNomeVariavel, getOrderBy, getPriKey, getReferencia, getSelect, getSysConexao, getSysTabelaNome, getWhere, setISelectableParent, wasRequestClose, wasSelected, wasUnSelected
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SysTabelaFormatadaProcesso

public SysTabelaFormatadaProcesso(SysConexao sysConexao)
Method Detail

getAlias

public java.lang.String getAlias()
Description copied from class: SysTabelaFormatada
Obtém o nome amigável da tabela Se a tabela pertencer a um tipo de processo, o nome será composto pelo Nome amigável do processo mais o nome da tabela.

Overrides:
getAlias in class SysTabelaFormatada

getTabelaCfopId

public int getTabelaCfopId()
Description copied from class: SysTabelaFormatada
Obtém o código do tipo de processo cujo ID foi fornecido no parâmetro.

Overrides:
getTabelaCfopId in class SysTabelaFormatada

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Specified by:
writeExternal in interface java.io.Externalizable
Overrides:
writeExternal in class SysTabelaFormatada
Throws:
java.io.IOException

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Specified by:
readExternal in interface java.io.Externalizable
Overrides:
readExternal in class SysTabelaFormatada
Throws:
java.io.IOException
java.lang.ClassNotFoundException